﻿angular.module("umbraco.resources").factory("districtDealerSectionResource",
    function ($q, $http, umbRequestHelper) {
        return {

            statistics: function (key) {
                return umbRequestHelper.resourcePromise(
                    $http.get("backoffice/UmbracoDealer/BackendDistrict/Count",
                        { params: { key: key } })
                    , "Failed to count district."
                );
            }
        };
    });